<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>模拟考试信息管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function () {

        });
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/campusinfoexam/campusinfoExam/">模拟考试信息列表</a></li>
    <shiro:hasPermission name="campusinfoexam:campusinfoExam:edit">
        <li><a href="${ctx}/campusinfoexam/campusinfoExam/form">模拟考试信息添加</a></li>
    </shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="campusinfoExam" action="${ctx}/campusinfoexam/campusinfoExam/" method="post"
           class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <ul class="ul-form">
        <li><label>考试名称：</label>
            <form:input path="examname" htmlEscape="false" maxlength="64" class="input-medium"/>
        </li>
        <li><label>归属用户：</label>
            <sys:treeselect id="user" name="user.id" value="${campusinfoExam.user.id}" labelName="user.name"
                            labelValue="${campusinfoExam.user.name}"
                            title="用户" url="/sys/office/treeData?type=3" cssClass="input-small" allowClear="true"
                            notAllowSelectParent="true"/>
        </li>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>考试名称</th>
        <th>考试费用</th>
        <th>支付方式</th>
        <th>缴费地点</th>
        <th>归属用户</th>
        <th>备注信息</th>
        <shiro:hasPermission name="campusinfoexam:campusinfoExam:edit">
            <th>操作</th>
        </shiro:hasPermission>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="campusinfoExam">
        <tr>
            <td>
                    ${campusinfoExam.examname}
            </td>
            <td>
                    ${campusinfoExam.payment}
            </td>
            <td>
                    ${campusinfoExam.paymentMethod}
            </td>
            <td>
                    ${campusinfoExam.paymentPlace}
            </td>
            <td>
                    ${campusinfoExam.user.name}
            </td>
            <td>
                    ${campusinfoExam.remarks}
            </td>
            <shiro:hasPermission name="campusinfoexam:campusinfoExam:edit">
                <td>
                    <a href="${ctx}/campusinfoexam/campusinfoExam/form?id=${campusinfoExam.id}">修改</a>
                    <a href="${ctx}/campusinfoexam/campusinfoExam/delete?id=${campusinfoExam.id}"
                       onclick="return confirmx('确认要删除该模拟考试信息吗？', this.href)">删除</a>
                </td>
            </shiro:hasPermission>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>